package de.hatraco.funderberg.blackjack.model;

import java.util.ArrayList;
import java.util.List;

public class Game {
	
	//Singleton Pattern: Stellt sicher, dass nur eine Instanz von Game existiert
	private static Game instance = new Game();
		
	public static Game getInstance() {
		if(instance == null) {
			instance = new Game();
		}
		return instance;
	}
	
	//definiert eine Array Liste, die später mit Spielern befüllt wird
	private List <Player> players = new ArrayList <Player>();
	private Player Dealer = new Player();
	private Deck gameDeck = Deck.getInstance();
	private int cardcount;
	private int pl_quant;
	private int pl_on;
	private int player_busts;
	private int pl_outofstack;

	public List<Player> getPlayers() {
		return players;
	}
	public void setPlayers(List<Player> players) {
		this.players = players;
	}
	public Player getDealer() {
		return Dealer;
	}
	public void setDealer(Player dealer) {
		Dealer = dealer;
	}
	public Deck getGameDeck() {
		return gameDeck;
	}
	public void setGameDeck(Deck gameDeck) {
		this.gameDeck = gameDeck;
	}
	public int getCardcount() {
		return cardcount;
	}
	public void setCardcount(int cardcount) {
		this.cardcount = cardcount;
	}
	public int getPl_quant() {
		return pl_quant;
	}
	public void setPl_quant(int pl_quant) {
		this.pl_quant = pl_quant;
	}
	public int getPl_on() {
		return pl_on;
	}
	public void setPl_on(int pl_on) {
		this.pl_on = pl_on;
	}
	public int getPlayer_busts() {
		return player_busts;
	}
	public void setPlayer_busts(int player_busts) {
		this.player_busts = player_busts;
	}
	public int getPl_outofstack() {
		return pl_outofstack;
	}
	public void setPl_outofstack(int pl_outofstack) {
		this.pl_outofstack = pl_outofstack;
	}	
}
